--- import { getCollection } from "astro:content"; import Base from "/components/Base.astro"; import { render } from "astro:content"; import Box4x3Mask from "/assets/box-4x3-mask.png"; import Hr from "/assets/hr.png"; import "/components/markdown.css"; export async function getStaticPaths() { return await Promise.all( await getCollection("blog").then((posts) => posts.map(async (post) => ({ params: { slug: post.id }, props: { post, banner: await import( `../../content/blog/assets/${post.data.banner.replace(".png", "")}.png` ).then(({ default: img }) => img.src as string), }, })), ), ); } const { post, banner } = Astro.props; const { Content } = await render(post); ---

{post.data.title}

{post.data.bio}